﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AutoMeasureV2._1
{
    /// <summary>
    /// excelSelect.xaml 的交互逻辑
    /// </summary>
    public partial class excelSelect : UserControl
    {
        public excelSelect()
        {
            InitializeComponent();
        }

        public event EventHandler openEvent;
        public event EventHandler mesEvent;
        public event EventHandler helpEvent;
        public event EventHandler exitEvent;

        private void exitButton_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Hidden;
            if (exitEvent != null)
            {
                exitEvent(this, null);
            }
        }

        private void mesButton_Click(object sender, RoutedEventArgs e)
        {
            if (mesEvent != null)
            {
                mesEvent(this, null);
            }
        }

        private void openButton_Click(object sender, RoutedEventArgs e)
        {
            if (openEvent != null)
            {
                openEvent(this, null);
            }
        }

        private void helpButton_Click(object sender, RoutedEventArgs e)
        {
            if (helpEvent != null)
            {
                mesEvent(this, null);
            }
        }
    }
}
